package org.pidan.basic.designModel.factory.abstractFactory;

/**
 * {@code @description}: 抽象工厂模式
 * 创建第二个子工厂，及实现类
 * {@code @author}: huangyuxin
 * {@code @date}: 2023-11-16
 */
public interface Abstract2 {

    void run();
}


class Engine1 implements Abstract2 {

    @Override
    public void run() {
        System.out.println("转得快");
    }
}

class Engine2 implements Abstract2 {

    @Override
    public void run() {
        System.out.println("转的慢");
    }
}